package com.yw.task.dto;

import com.yw.task.domain.Node;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.util.List;

@Data
public class AddNodeDTO {
    @Schema(description = "节点类型",name = "nodeType")
    private String nodeType;//用于判断拖入画布中的是哪种节点
    @Schema(description = "任务名",name = "taskName")
    private String taskName;
    @Schema(description = "节点名字",name = "nodeName")
    private String nodeName;//节点名字
    @Schema(description = "节点描述",name = "nodeDesc")
    private String nodeDesc;//节点描述
    @Schema(description = "节点配置中的api名称对应的id",name = "interfaceId")
    private Integer interfaceId;//节点配置中的api名称对应的id
    @Schema(description = "节点输入参数",name = "nodeInValues")
    private List<NodeInValue> nodeInValues;//节点输入参数
    @Schema(description = "上流节点id",name = "upstreamIds")
    private List<Integer> upstreamIds;//上流节点id
    @Schema(description = "下流节点id",name = "downstreamIds")
    private List<Integer> downstreamIds;//下流节点id
    @Schema(description = "缓存取数规则",name = "cacheRule")
    private Integer cacheRule;//缓存取数规则
    @Schema(description = "缓存配置天",name = "day")
    private Integer day;//缓存配置天
    @Schema(description = "缓存配置时",name = "hour")
    private Integer hour;//缓存配置时
    @Schema(description = "缓存配置分",name = "min")
    private Integer min;//缓存配置分
    @Schema(description = "码表id",name = "codeId")
    private Integer codeId;//码表id
    @Schema(description = "异常处理",name = "retryMechanisms")
    private List<RetryMechanism> retryMechanisms;//异常处理
    @Schema(description = "通过遍历数据库管理表中所有数据的连接信息最后部分选择",name = "databaseName")
    private String databaseName;//通过遍历数据库管理表中所有数据的连接信息最后部分选择
    @Schema(description = "通过数据库名称来查询表并选择",name = "tableName")
    private String tableName;//通过数据库名称来查询表并选择
    @Schema(description = "通过数据库名称来查询表并选择",name = "dataTableName")
    private String dataTableName;//通过数据资产表名称来查询表并选择
    @Schema(description = "通过数据库名称来查询表并选择",name = "pyId")
    private Integer pyId;//通过脚本名称来查询表并选择
    @Schema(description = "数据资产表id",name = "assetId")
    private Integer assetId;//数据资产表id

}
